package com.liveneo.adapter.mobile.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.liveneo.adapter.base.entity.PrpmLossRepair;
import com.liveneo.adapter.base.mapper.PrpmLossRepairMapper;
import com.liveneo.adapter.mobile.service.LossRepairService;

@Service
public class LossRepairServiceImpl implements LossRepairService {
    @Autowired
    private PrpmLossRepairMapper prpmLossRepairMapper;

    @Override
    public int deleteLossRepairList(String lossUuid) throws Exception {
        // TODO Auto-generated method stub
        return prpmLossRepairMapper.deleteByLossUuid(lossUuid);
    }

    @Override
    public List<PrpmLossRepair> getLossRepairList(String lossUuid) throws Exception {
        // TODO Auto-generated method stub
        return prpmLossRepairMapper.selectByLossUuid(lossUuid);
    }

    @Override
    public int saveLossRepairList(List<PrpmLossRepair> record) throws Exception {
        // TODO Auto-generated method stub
        return prpmLossRepairMapper.insertMoreRows(record);
    }
}
